package com.shady.diskmanger.dao;

import com.shady.diskmanger.model.BigFile;

import java.io.IOException;

public class BigFileCopyThreadDao implements Runnable {
    private BigFile bigFile;

    public BigFileCopyThreadDao(BigFile bigFile) {
        this.bigFile = bigFile;
    }

    @Override
    public void run() {
        try {
            FilesFunctionDao filesFunctionDao = new FilesFunctionDao();
            filesFunctionDao.bigFileCopy(bigFile);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
